package org.hepotaiya.sample;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.zzz.hepotaiya.container.spring.SpringContainerWrapper;
import org.zzz.hepotaiya.executor.CallableExecutor;

public class SpringMain {
	public static void main(String[] args) throws Exception {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		SpringContainerWrapper container = new SpringContainerWrapper();
		container.setApplicationContext(context);
		CallableExecutor executor = new CallableExecutor();
		executor.setContainer(container);
		executor.doExecute("org.hepotaiya.sample.spring.batch");
	}
}
